﻿// Copyright (c)  YISH. All rights reserved.
// Licensed under the MIT License, See License.txt in the project root for license information.

using System.Collections.Generic;
using System.Linq;
using NSQL.Sharpen;

namespace NSQL.Statements
{
    public class SortingCollection : ElementCollection<ISortingElement, SortingElement>, IDeepClone
    {
        public SortingCollection()
        {
        }

        public SortingCollection(IEnumerable<ISortingElement> elements) : base(elements)
        {
        }
        
        object IDeepClone.DeepCopy()
        {
            return new SortingCollection(this.Select(o => o.DeepClone()));
        }
    }
}